/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file           : main.h
  * @brief          : Header for main.c file.
  *                   This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *
  * Copyright (c) 2024 STMicroelectronics.
  * All rights reserved.
  *
  * This software is licensed under terms that can be found in the LICENSE file
  * in the root directory of this software component.
  * If no LICENSE file comes with this software, it is provided AS-IS.
  *
  ******************************************************************************
  */
/* USER CODE END Header */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32f1xx_hal.h"

/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */

/* USER CODE END Includes */

/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */

/* USER CODE END ET */

/* Exported constants --------------------------------------------------------*/
/* USER CODE BEGIN EC */

/* USER CODE END EC */

/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */

/* USER CODE END EM */

/* Exported functions prototypes ---------------------------------------------*/
void Error_Handler(void);

/* USER CODE BEGIN EFP */

/* USER CODE END EFP */

/* Private defines -----------------------------------------------------------*/
#define ADC1_Current_Pin GPIO_PIN_1
#define ADC1_Current_GPIO_Port GPIOA
#define SPI1_EMB1428_SCK_Pin GPIO_PIN_5
#define SPI1_EMB1428_SCK_GPIO_Port GPIOA
#define SPI1_EMB1428__MISO_Pin GPIO_PIN_6
#define SPI1_EMB1428__MISO_GPIO_Port GPIOA
#define SPI1_EMB1428__MOSI_Pin GPIO_PIN_7
#define SPI1_EMB1428__MOSI_GPIO_Port GPIOA
#define EMB1428_SPI_CS_LOW1_Pin GPIO_PIN_4
#define EMB1428_SPI_CS_LOW1_GPIO_Port GPIOC
#define EMB1428_SPI_CS_HIGH2_Pin GPIO_PIN_5
#define EMB1428_SPI_CS_HIGH2_GPIO_Port GPIOC
#define EMB1428_RST_Pin GPIO_PIN_0
#define EMB1428_RST_GPIO_Port GPIOB
#define EMB1428_FAULT_INT_Pin GPIO_PIN_1
#define EMB1428_FAULT_INT_GPIO_Port GPIOB
#define EMB1428_FAULT_INT_EXTI_IRQn EXTI1_IRQn
#define EMB1499_VSET_PWM_Pin GPIO_PIN_11
#define EMB1499_VSET_PWM_GPIO_Port GPIOB
#define SPI2_W25Q128_CS_Pin GPIO_PIN_12
#define SPI2_W25Q128_CS_GPIO_Port GPIOB
#define SPI2_W25Q128_SCK_Pin GPIO_PIN_13
#define SPI2_W25Q128_SCK_GPIO_Port GPIOB
#define SPI2_W25Q128_MISO_Pin GPIO_PIN_14
#define SPI2_W25Q128_MISO_GPIO_Port GPIOB
#define SIPI2_W25Q128_MOSI_Pin GPIO_PIN_15
#define SIPI2_W25Q128_MOSI_GPIO_Port GPIOB
#define CD4051_INH_DOWN_Pin GPIO_PIN_6
#define CD4051_INH_DOWN_GPIO_Port GPIOC
#define CD4051_INH_UP_Pin GPIO_PIN_7
#define CD4051_INH_UP_GPIO_Port GPIOC
#define LANYA_TX1_Pin GPIO_PIN_9
#define LANYA_TX1_GPIO_Port GPIOA
#define LANYA_RX1_Pin GPIO_PIN_10
#define LANYA_RX1_GPIO_Port GPIOA
#define SPI3_LTC6803_SCK_Pin GPIO_PIN_3
#define SPI3_LTC6803_SCK_GPIO_Port GPIOB
#define SPI3_LTC6803_MISO_Pin GPIO_PIN_4
#define SPI3_LTC6803_MISO_GPIO_Port GPIOB
#define SPI3_LTC6803_MOSI_Pin GPIO_PIN_5
#define SPI3_LTC6803_MOSI_GPIO_Port GPIOB
#define LTC6803_CS_Pin GPIO_PIN_6
#define LTC6803_CS_GPIO_Port GPIOB
#define CD4051B_C_Pin GPIO_PIN_7
#define CD4051B_C_GPIO_Port GPIOB
#define CD4051B_A_Pin GPIO_PIN_8
#define CD4051B_A_GPIO_Port GPIOB
#define CD4051B_B_Pin GPIO_PIN_9
#define CD4051B_B_GPIO_Port GPIOB

/* USER CODE BEGIN Private defines */

/* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */
